﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
using ViewPractice.Properties;

namespace ViewPractice
{
    public partial class MainWindowViewModel : ObservableObject
    {
        [ObservableProperty]
        private RoleEnum _currentRole;

        
    }

    public enum RoleEnum
    {
        [Description("管理员")]
        [Localization(ResourceName = "Administrator", ResourceType = typeof(Lang))]
        Administrator = 0,

        [Description("内容管理员")]
        [Localization(ResourceName = "ContentManager", ResourceType = typeof(Lang))]
        ContentManager = 1,

        [Description("文档管理员")]
        [Localization(ResourceName = "DocManager", ResourceType = typeof(Lang))]
        DocManager = 2,

        [Description("数据管理员")]
        [Localization(ResourceName = "DataManager", ResourceType = typeof(Lang))]
        DataManager = 3
    } 

}
